package com.ruoyi.edh.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
/**
 *
 *
 * @description:退回订单传输对象
 * @author: 梁东宸
 * @time: 2020/9/5 4:44 下午
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("易订货-新增退货实体类")
public class EdhReturnGoodsDto {
    private static final long serialVersionUID = 1L;


    /** 订单id */
    @Excel(name = "订单id")
    @ApiModelProperty("订单id")
    @NotNull(message = "子订单id不能为空")
    private Long orderId;


    /** 退款类型 1退款退货/2换货 */
    @Excel(name = "退款类型 1退款退货/2换货")
    @ApiModelProperty("退款类型 1退款退货/2换货")
    @NotNull(message = "默认为1退回退款")
    private String returnType;


    /** 退回原因 */
    @Excel(name = "退回原因")
    @ApiModelProperty("退回原因")
    @NotNull(message = "退回原因不能为空")
    private String returnReason;


    /** 退回证明 */
    @Excel(name = "退回证明图片地址")
    @ApiModelProperty("退回证明图片地址")
    @NotNull(message = "退回证明不能为空")
    private String certificate;


    /** 退回数量 */
    @Excel(name = "退回数量")
    @ApiModelProperty("退回数量")
    @NotNull(message = "退回数量不能为空")
    private Long returnNumber;





}
